package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class LxmSysUserAdminRowMapper implements RowMapper<LxmSysUserAdmin> {
    @Override
    public LxmSysUserAdmin mapRow(ResultSet rs, int rowNum) throws SQLException {
        LxmSysUserAdmin sys=new LxmSysUserAdmin();
//        sys.setId(rs.getInt("id"));
        sys.setName(rs.getString("name"));
//        sys.setPassword(rs.getString("password"));
        sys.setPhone(rs.getString("phone"));
        sys.setUnit(rs.getString("unit"));
        sys.setUser_name(rs.getString("user_name"));
        sys.setUser_qx(rs.getString("user_qx"));
        return sys;
    }
}
